package com.boomsecret.pattern.decorator;

/**
 * Created by wangjinliang on 2018/1/26.
 */
public class DecoratorCoffee extends Coffee {
    protected Coffee coffee;

    public DecoratorCoffee(Coffee coffee) {
        this.coffee = coffee;
    }

    @Override
    public int getPrice() {
        return this.coffee.getPrice();
    }

    @Override
    public String getName() {
        return this.coffee.getName();
    }
}
